package com.lemon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lemon.domain.StocktakingTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StocktakingTaskMapper extends BaseMapper<StocktakingTask> {

    @Select("SELECT * FROM stocktaking_task WHERE is_enable = 1")
    List<StocktakingTask> selectEnabledTasks();
}